<%--
  Created by IntelliJ IDEA.
  User: 98103
  Date: 2020/7/20
  Time: 18:46
  To change this template use File | Settings | File Templates.
--%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" errorPage="" %>
<html>
  <head>
    <title>用户登录</title>
  </head>
  <body>
 <%-- <%
    Object username = session.getAttribute("username");
    if(username==null){
  %>--%>
<c:choose>
  <c:when test="${empty username}"> <a href="/stu/login.jsp">用户登录</a></c:when>
  <c:otherwise>
    <a href="/stu/addStudent.jsp">添加学生</a>
    <a href="/stu/listStudentServlet">查看学生</a>
  </c:otherwise>
</c:choose>
  </body>
</html>
